package com.java.mall_imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.java.mall_imooc.common.utils.PageUtils;
import com.java.mall_imooc.common.utils.R;
import com.java.mall_imooc.entity.Order;
import com.java.mall_imooc.vo.OrderVo;

/**
 * 订单表
 *
 * @author jl
 * @since 2020-03-14 23:41:10
 */
public interface OrderService extends IService<Order> {

    PageUtils queryPage(Order order, Integer pageNum, Integer pageSize);

    R<PageInfo> list(Integer userId, Integer pageNum, Integer pageSize);

    R<OrderVo> create(Integer userId, Integer shippingId);

    R<OrderVo> detail(Integer userId, Long orderNo);

    R cancel(Integer userId, Long orderNo);

    void paid(Long orderNo);

}

